package com.navinfo.tripanalysis.pojo;

import com.github.yt.excel.annotations.ExportExcel;
import com.github.yt.excel.annotations.ImportExcel;
import lombok.Data;

/**
 * 0F37的pojo<br/>
 * @author machi
 **/
@Data
public class Point0F37 implements Point {
    /**
     * tripId,行程ID（公共）
     */
    @ExportExcel(title = "tripId", order = 0)
    @ImportExcel(order = 0)
    private int tripId;

    /**
     * 车辆tid（公共）
     */
    @ExportExcel(title = "tid", order = 1)
    @ImportExcel(order = 1)
    private long tid;
    /**
     *  协议类型,1:0f37,2:0200（公共）
     */
    @ExportExcel(title = "protocol", order = 2)
    @ImportExcel(order = 2)
    private byte protocol;
    /**
     * gps时间，单位毫秒 （公共）
     */
    @ExportExcel(title = "gpsTime", order = 3)
    @ImportExcel(order = 3)
    private long gpsTime;
    /**
     * 速度,单位km/h (公共)
     */
    @ExportExcel(title = "speedKmh", order = 4)
    @ImportExcel(order = 4)
    private double speedKmh;

    /**
     * 纬度 ，单位：以度为单位乘以10的6次方(公共)
     */
    @ExportExcel(title = "latitude", order = 5)
    @ImportExcel(order = 5)
    private int latitude;

    /**
     * 经度 ，单位：以度为单位乘以10的6次方(公共)
     */
    @ExportExcel(title = "longitude", order = 6)
    @ImportExcel(order = 6)
    private int longitude;

    /**
     * 方向0-359正北为0顺时针
     */
    @ExportExcel(title = "direction", order = 7)
    @ImportExcel(order = 7)
    private int direction;

    /**
     * 高程，海拔高度，单位为米（m）（有符号数）单位米 (公共)
     */
    @ExportExcel(title = "height", order = 8)
    @ImportExcel(order = 8)
    private double height;

    /**
     * 发动机输出扭矩，单位：%(公共)
     */
    @ExportExcel(title = "torque", order = 9)
    @ImportExcel(order = 9)
    private int engineOutputTorque;

    /**
     * 转速，单位：rpm（转每分钟）(公共)
     */
    @ExportExcel(title = "rotation", order = 10)
    @ImportExcel(order = 10)
    private int rotation;

    /**
     * 油门，单位：%(公共)
     */
    @ExportExcel(title = "accPedalPos", order = 11)
    @ImportExcel(order = 11)
    private int accPedalPos;

    /**
     * 制动信号(0F37特有)
     */
    @ExportExcel(title = "brake", order = 12)
    @ImportExcel(order = 12)
    private int brake;

    /**
     * 离合器开关(公共)
     */
    @ExportExcel(title = "clutch", order = 13)
    @ImportExcel(order = 13)
    private int clutchSwitch;

    /**
     * 发动机瞬时油耗，单位：km/L(公共)
     */
    @ExportExcel(title = "realTimeOilConsumption", order = 14)
    @ImportExcel(order = 14)
    private double realTimeOilConsumption;

    /**
     * 发动机燃油消耗率,单位：L/h(公共)
     */
    @ExportExcel(title = "fuelConsumptionRate", order = 15)
    @ImportExcel(order = 15)
    private double fuelConsumptionRate;

    /**
      * 燃油总消耗，单位：L(公共)
     * */
     @ExportExcel(title = "TotalFuelCons", order = 16)
     @ImportExcel(order = 16)
     private double totalFuelCons;
    /**
     *  大气温度,单位：摄氏度（0F37特有）
     */
    @ExportExcel(title = "atmosphericTem", order = 17)
    @ImportExcel(order = 17)
    private int atmosphericTem;


    /**
     *  仪表车速,单位:km/h
     */
    @ExportExcel(title = "instrumentSpeed", order = 18)
    @ImportExcel(order = 18)
    private double instrumentSpeed;

    /**
     *  尿素喷射量,单位:克
     */
    @ExportExcel(title = "ureainjection", order = 18)
    @ImportExcel(order = 18)
    private int ureaInjection;

    /**
     *  尿素液位,单位:%
     */
    @ExportExcel(title = "urealevel", order = 19)
    @ImportExcel(order = 19)
    private int ureaLevel;


    /**
     * 0f37 Serialnumber都为0，则相同gpstime,只第一个点有效
     * @return
     */
    @Override
    public int getSerialNumber() {
        return 0;
    }


}
